package br.com.dlm.simuladoitil.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import br.com.dlm.simuladoitil.R;
import br.com.dlm.simuladoitil.activities.ListaQuestoesActivity;
import br.com.dlm.simuladoitil.basicas.Categoria;
import br.com.dlm.simuladoitil.fragments.CategoriasFragment;

public class DashboardActivity extends Activity implements CategoriasFragment.OnClickOpcaoCategoriaListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dashboard);
    }

    @Override
    public void clickOpcaoCategoria(Categoria categoria) {
        Intent intent = new Intent(this, ListaQuestoesActivity.class);
        intent.putExtra(ListaQuestoesActivity.EXTRA_CATEGORIA, categoria);
        startActivity(intent);
    }
}
